<?php
interface Db_Driver_interface{
	public static function getInsterface($config);
	public function __construct();
	public function __destruct();
	public function getprefix();
	public function getlink();
	public function getQuery($table);
}
interface DB_Crud_interface{
	public function __construct($table,$link);
	public function add($data);
	public function update($data);
	public function delete();
	public function select();
	public function find();
	public function fields($fields='*');
	public function where($where);
	public function limit($sql);
	public function orderby($sql);
	public function groupby($sql);
	public function join($table,$where,$join='');
	public function having($sql);
	public function query($sql,$result=true);
}
interface Db_Result{
	public function fetch();
	public function fetchAll();
}